Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(jest-cli): export buildArgv #12456 #15310

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

dongwa
Copy link

@dongwa dongwa commented Sep 18, 2024

Summary

People need a function to get the argv of runCLI,so we should export buildArgv to help that,ref #12456
image

And then, we can use this way to run jest programmatically with ts support

import { runCLI, buildArgv} from 'jest'

  const jestArgv = await buildArgv(process.argv)
  runCLI(
    jestArgv,
    [cwd]
  )

Copy link

linux-foundation-easycla bot commented Sep 18, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link

netlify bot commented Sep 18, 2024

Deploy Preview for jestjs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit f1a17c6
🔍 Latest deploy log https://app.netlify.com/sites/jestjs/deploys/66ea49304e35840007e55ec8
😎 Deploy Preview https://deploy-preview-15310--jestjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant